package com.common.model;

import lombok.Data;
import lombok.NoArgsConstructor;
import lombok.ToString;

import java.util.ArrayList;
import java.util.List;

/**
 * 带权图 边集数组数据结构
 *
 * @author think
 * @version 1.0.0
 * @since 2020/3/13
 */
@Data
@ToString
@NoArgsConstructor
public class WeightGraph {
    /**
     * 节点个数
     */
    private int nodeNum;

    /**
     * 是否有向图
     */
    private boolean isDirect;

    /**
     * 顶点集合
     */
    private List<Vertex> vertices = new ArrayList<>();

    /**
     * 边集合
     */
    private List<Edge> edges = new ArrayList<>();
}
